package com.itheima.homework08;

public class Goods {
    private String name;
    private int inventoryQuantity;//库存数量

    @Override
    public String toString() {
        return "Goods{" +
                "商品名称='" + name + '\'' +
                ", 库存数量=" + inventoryQuantity +
                '}';
    }

    public Goods() {
    }

    public Goods(String name, int inventoryQuantity) {
        this.name = name;
        this.inventoryQuantity = inventoryQuantity;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getInventoryQuantity() {
        return inventoryQuantity;
    }

    public void setInventoryQuantity(int inventoryQuantity) {
        this.inventoryQuantity = inventoryQuantity;
    }
}
